package com.ldj.tim.gateway.exception;

import com.fasterxml.jackson.core.JsonProcessingException;

/**
 * @author majinhui
 * @description
 * @create 2024/11/11 14:52
 **/

public class JwtException extends RuntimeException{
    private Integer code;
    private String msg;
    private Throwable cause;
    public JwtException(String msg) {
        this.code = 501;
        this.msg = msg;
    }
    public JwtException(String msg, Throwable cause) {
        this(msg);
        this.cause = cause;
    }


    public JsonProcessingException setJwtMsg(String msg) {
        throw new LogicException(msg);
    }
}
